Skip to content

Pin GitHub Actions to full-length commit SHAs - #1482

Merged
David Pine (IEvangelist) merged 3 commits into
microsoft:mainfrom
danfiedler-msft:danfiedler/pin-actions
Aug 20, 2026
Merged

Pin GitHub Actions to full-length commit SHAs#1482
David Pine (IEvangelist) merged 3 commits into
microsoft:mainfrom
danfiedler-msft:danfiedler/pin-actions

Conversation

@danfiedler-msft

@danfiedler-msft Dan Fiedler (danfiedler-msft) commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Actions remain pinned to full-length SHAs with standardized inline # vX.Y.Z comments.
  • Dependabot cooldown: { default-days: 7 } now applies to all ecosystems in dependabot.yml: npm, nuget, and github-actions. Previously, only github-actions had this cooldown.
  • update-release-branch.yml was already SHA-pinned; only its version comment was standardized from # v3 to # v3.0.0.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR hardens the repository’s dependency update and CI configuration by (1) ensuring GitHub Actions are referenced by immutable commit SHAs (with accurate version annotations) and (2) configuring Dependabot to manage GitHub Actions updates with a 7‑day cooldown to reduce exposure to newly published compromised releases.

Changes:

  • Updated a workflow action reference comment to accurately reflect the pinned actions/create-github-app-token version.
  • Added a github-actions Dependabot update entry, including grouping and a 7‑day cooldown.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/update-release-branch.yml Keeps the action pinned by SHA and corrects the version comment for clarity/reproducibility.
.github/dependabot.yml Adds Dependabot support for GitHub Actions updates with grouping and a 7‑day cooldown to improve supply-chain resilience.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/dependabot.yml
Comment thread .github/workflows/update-release-branch.yml
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: f7cf266b-ecea-4089-8f5c-198f0016f438
@IEvangelist
David Pine (IEvangelist) enabled auto-merge (squash) August 20, 2026 13:50
Comment thread .github/dependabot.yml
Comment thread .github/workflows/update-release-branch.yml
@IEvangelist
David Pine (IEvangelist) merged commit 76f6c55 into microsoft:main Aug 20, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants